package com.komon.object;

import com.komon.constant.HttpMethod;
import com.komon.constant.header.EntityHeader;
import com.komon.constant.header.GeneralHeader;

/**
 * this object represent the context for a httprequest
 * to store some variable in the context for process 1 request
 * @author timon.zhang
 */
public class OneRequestContext {
	private HttpMethod method;
	private String queryString;
	private GeneralHeader generalHeader;
	private EntityHeader entityHeader;	

	public void setMethod(HttpMethod method) {
		this.method = method;
	}

	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}

	public GeneralHeader getGeneralHeader() {
		return generalHeader;
	}

	public void setGeneralHeader(GeneralHeader generalHeader) {
		this.generalHeader = generalHeader;
	}

	public HttpMethod getMethod() {
		return method;
	}

	public String getQueryString() {
		return queryString;
	}

	/**
	 * @return the entityHeader
	 */
	public EntityHeader getEntityHeader() {
		return entityHeader;
	}

	/**
	 * @param entityHeader the entityHeader to set
	 */
	public void setEntityHeader(EntityHeader entityHeader) {
		this.entityHeader = entityHeader;
	}
	
	
}
